<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>请选中这里的部分文字。</div>
        <div><input type="button" value="加粗" onclick="javascript:turnBold();" /></div>
        <script type="text/javascript">
        function turnBold()
        {
            var r = document.selection.createRange();
            r.execCommand("Bold");
        }
    </script>
    </body>
</html>
